﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace NUnitTest.UnitTest.Targets
{
    [TestFixture]
    class TestFixtureStartupTeardownOnce
    {
        bool _setup = false;
        bool _teardown = false;

        [TestFixtureSetUp]
        public void FixtureSetup()
        {
            if (_setup)
            {
                Assert.Fail("TestFixtureSetup should not be called Twice");
            }
            _setup = true;
        }

        [TestFixtureTearDown]
        public void TestFixtureTearDown()
        {
            if (_teardown)
            {
                Assert.Fail("TestFixtureTearDown should not be called Twice");
            }
            _teardown = true;
        }

        [Test]
        public void TestingOne()
        {
        }

        [Test]
        public void StrömTest(){
        }
    }
}
